//package com.java.demo.Service;
//
//import com.java.demo.Model.User;
//import org.springframework.stereotype.Service;
//
//import javax.annotation.Resource;
//
//@Service
//public class UserService3 {
//    // 属性注入
//    @Resource(name = "user2")
//    private User user;
//
//    public void sayHi(){
//        System.out.println(user.toString());
//    }
//}
